<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>{$C.webtitle}</title>

<meta content="{$C.webkeywords}" name="Keywords">

<meta name="description" content="{$C.webdescription}" />

<link href="__PUBLIC__/index.css" rel="stylesheet" type="text/css" />

<script src="./Public/js/jquery.js"></script>

	<!--鼠标滚轮js-->

    <!--<script src="__PUBLIC__/js/jquery.easing.1.3.js"></script>

    <script src="__PUBLIC__/js/jquery.custom-scrollbar.js"></script>-->

    <!--幻灯片js-->

    <script src="__PUBLIC__/js/jquery.superslide.2.1.1.js"></script>



<script src="__JS__/jquery-1.4a2.min.js" type="text/javascript"></script>

<!--<script src="__JS__/jquery.KinSlideshow-1.2.1.min.js" type="text/javascript"></script>

<script type="text/javascript">

$(function(){

	$("#KinSlideshow").KinSlideshow();

})

slides.jquery

</script>-->

<!--<link href="__PUBLIC__/css/slideshow.css" rel="stylesheet" />-->

</head>

<body>
	<div class="shouji">
		<include file="Public:headerss"/>
	
		<!--首页第一排-->
	
		<div class="shouji_banner" >
			<img src="{$jiaodian.tupian}" style="width:100%;" />
			<div class="clear"></div>
		</div>
	
		<!--首页第一排-->
		<div class="shouji_sou_box_bj" id="baoming_box">
			<div class="shouji_sou_box">
				<div class="shouji_sou_box_t">
					<span id="baoming_t" style="padding-left:20px;"></span>
					<img src="__PUBLIC__/img/close.png" style="float:right;margin-right:5px;margin-top:5px;width:50px;height:50px;cursor:pointer;" onclick="hide_baoming_box()" />
				</div>
				<div class="shouji_sou_box_n">
					<input type="hidden" value="" name="baoming_zuopinid" id="baoming_zuopinid" />
					<span>姓名：</span><span><input type="text" name="bmname" id="bmname" style="width:200px;height:34px;font-size:28px;line-height:34px;" /></span>
					<br />
					<span>电话：</span><span><input type="text" name="bmdianhua" id="bmdianhua" style="width:200px;height:34px;font-size:28px;line-height:34px;" /></span>
					<br />
					<div onclick="baomingtijiao()" style="width:100px;height:40px;background:url(__PUBLIC__/img/annius.jpg) no-repeat;float:left;cursor:pointer;margin-top:31px;margin-left:5px;line-height:40px;text-align:center;">确认</div>
				</div>
			</div>
			<div class="clear"></div>
		</div>
		<script>
		function hide_baoming_box(){
			$('#baoming_box').hide();
		}
		function show_baoming_box(t){
			$('#baoming_box').show();
			$('#baoming_zuopinid').val(t);
			var name=$('#zuopin_name'+t).html();
			$('#baoming_t').html('型号：'+name);
			
		}
		function baomingtijiao(){
			var bmname=$('#bmname').val();
			var bmdianhua=$('#bmdianhua').val();
			if(bmname==''){
				alert("请输入姓名");
				return false;
			}
			if(bmname.length<2){
				alert("姓名最少两个字");
				return false;
			}
			if(bmname.length>50){
				alert("姓名最多五十个字");
				return false;
			}
			if(bmdianhua==''){
				alert("请输入电话号码");
				return false;
			}
			
			//验证是否为手机号与座机号
			if(bmdianhua.length=='11'){
				var reg= /^(13[0-9]{9})$|(15[0-9]{9})$|(17[0-9]{9})$|(18[0-9]{9})$/;
			}else{
				var reg= /^((0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/;
			}
			//alert(bmdianhua.length);
			if(!reg.exec(bmdianhua)){
				alert("请输入正确的手机号或座机号（座机号用\"-\"分隔），中奖结果会通过电话通知您");
				return false;
			}
			var fenleiid=$('#baoming_zuopinid').val();
			
			$.post("{:U('baomingtijiao')}", { bmdianhua:bmdianhua, bmname:bmname, fenleiid:fenleiid }, function(v){
				if(v=="1"){
					alert("请输入电话号码");
					return false;
				}
				if(v=="2"){
					alert("请输入姓名");
					return false;
				}
				if(v=="3"){
					alert("您已报过名");
					return false;
				}
				if(v=="100"){
					alert("提交失败，谢谢！");
					return false;
				}
				if(v=="99"){
					alert("提交成功，您已进入抽奖库！");
					location.reload();
				}
				
			},'JSON');
			
		}
		</script>
	
		<!--首页第二排-->
		<div class="shouji_cp">
				<div class="shouji_cpt">
				众筹产品公示
				</div>
				<volist name="zuopin" id="zuopin">
					<div class="shouji_cpli">
						<div class="shouji_cpli_tu">
							<img src="{$zuopin.tupian}" style="width:100%;height:auto;" />
						</div>
						<div class="shouji_cpli_biao">
							<div class="shouji_cpli_biao_z">
								<div class="shouji_cpli_biao_li">
									产品型号
								</div>
								<div class="shouji_cpli_biao_li">
									300户
								</div>
								<div class="shouji_cpli_biao_li">
									500户
								</div>
								<div class="shouji_cpli_biao_li">
									800户
								</div>
								<div class="shouji_cpli_biao_li">
									1000户
								</div>
								<div class="shouji_cpli_biao_li">
									已参与
								</div>
							</div>
							<div class="shouji_cpli_biao_y">
								<div class="shouji_cpli_biao_li" id="zuopin_name{$zuopin.id}">
									{$zuopin.name}
								</div>
								<div class="shouji_cpli_biao_li">
									{$zuopin.sanbai}
								</div>
								<div class="shouji_cpli_biao_li">
									{$zuopin.wubai}
								</div>
								<div class="shouji_cpli_biao_li">
									{$zuopin.babai}
								</div>
								<div class="shouji_cpli_biao_li">
									{$zuopin.yiqian}
								</div>
								<div class="shouji_cpli_biao_li">
									{$zuopin.renshu}户
								</div>
							</div>
							<div class="clear"></div>
						</div>
						<div class="shouji_cpli_jian">
						{$zuopin.jianjie}
						</div>
						<div class="shouji_cpli_anniu">
							<img src="__PUBLIC__/img/anniusj.jpg" style="width:100%;height:68px;" />
							<div style="height:68px;border:none;width:100%;text-align:center;line-height:68px;position:relative;z-index:122;background:none;bottom:68px;font-size:42px;cursor:pointer;letter-spacing:22px;color:#fff;font-family:'微软雅黑';font-weight:bold;" onclick="show_baoming_box({$zuopin.id})">
							报名参与
							</div>
							<div class="clear"></div>
						</div>
						<div class="clear"></div>
					</div>
				</volist>
				<div class="shouji_cpli_tu">
					<img src="{$erjijiaodian.tupian}" style="width:100%;height:auto;" />
				</div>
				<div class="clear"></div>
		</div>
		<!--首页第二排-->
	
		<div style="width:100%;height:40px;">
		</div>
		<div class="clear"></div>

	</div>
</body>

</html>